Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vector.h

Go to the documentation of this file.
00001 /* -*- c -*- */
00002 #ifndef INCLUDED_LIB3DS_VECTOR_H
00003 #define INCLUDED_LIB3DS_VECTOR_H
00004 /*
00005  * The 3D Studio File Format Library
00006  * Copyright (C) 1996-2001 by J.E. Hoffmann <je-h@gmx.net>
00007  * All rights reserved.
00008  *
00009  * This program is  free  software;  you can redistribute it and/or modify it
00010  * under the terms of the  GNU Lesser General Public License  as published by 
00011  * the  Free Software Foundation;  either version 2.1 of the License,  or (at 
00012  * your option) any later version.
00013  *
00014  * This  program  is  distributed in  the  hope that it will  be useful,  but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016  * or  FITNESS FOR A  PARTICULAR PURPOSE.  See the  GNU Lesser General Public  
00017  * License for more details.
00018  *
00019  * You should  have received  a copy of the GNU Lesser General Public License
00020  * along with  this program;  if not, write to the  Free Software Foundation,
00021  * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00022  *
00023  * $Id: vector.h,v 1.1 2005/03/07 11:16:26 Assassin Exp $
00024  */
00025 
00026 #ifndef INCLUDED_LIB3DS_TYPES_H
00027 #include <lib3ds/types.h>
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 extern LIB3DSAPI void lib3ds_vector_zero(Lib3dsVector c);
00035 extern LIB3DSAPI void lib3ds_vector_copy(Lib3dsVector dest, Lib3dsVector src);
00036 extern LIB3DSAPI void lib3ds_vector_neg(Lib3dsVector c);
00037 extern LIB3DSAPI void lib3ds_vector_add(Lib3dsVector c, Lib3dsVector a, Lib3dsVector b);
00038 extern LIB3DSAPI void lib3ds_vector_sub(Lib3dsVector c, Lib3dsVector a, Lib3dsVector b);
00039 extern LIB3DSAPI void lib3ds_vector_scalar(Lib3dsVector c, Lib3dsFloat k);
00040 extern LIB3DSAPI void lib3ds_vector_cross(Lib3dsVector c, Lib3dsVector a, Lib3dsVector b);
00041 extern LIB3DSAPI Lib3dsFloat lib3ds_vector_dot(Lib3dsVector a, Lib3dsVector b);
00042 extern LIB3DSAPI Lib3dsFloat lib3ds_vector_squared(Lib3dsVector c);
00043 extern LIB3DSAPI Lib3dsFloat lib3ds_vector_length(Lib3dsVector c);
00044 extern LIB3DSAPI void lib3ds_vector_normalize(Lib3dsVector c);
00045 extern LIB3DSAPI void lib3ds_vector_normal(Lib3dsVector n, Lib3dsVector a,
00046   Lib3dsVector b, Lib3dsVector c);
00047 extern LIB3DSAPI void lib3ds_vector_transform(Lib3dsVector c, Lib3dsMatrix m, Lib3dsVector a);
00048 extern LIB3DSAPI void lib3ds_vector_cubic(Lib3dsVector c, Lib3dsVector a, Lib3dsVector p,
00049   Lib3dsVector q, Lib3dsVector b, Lib3dsFloat t);
00050 extern LIB3DSAPI void lib3ds_vector_min(Lib3dsVector c, Lib3dsVector a);
00051 extern LIB3DSAPI void lib3ds_vector_max(Lib3dsVector c, Lib3dsVector a);
00052 extern LIB3DSAPI void lib3ds_vector_dump(Lib3dsVector c);
00053 
00054 #ifdef __cplusplus
00055 };
00056 #endif
00057 #endif
00058 

Generated on Mon Sep 12 19:58:58 2005 for Destiny3D by doxygen1.3-rc3